package com.stylefeng.guns.modular.product.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2019-03-17
 */
@TableName("sys_spotref")
public class Spotref extends Model<Spotref> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("bloomberg_ccy_ticke")
    private String bloombergCcyTicke;
    private String ccy1;
    private String ccy2;
    @TableField("fx_ccy_pair")
    private String fxCcyPair;
    @TableField("px_last")
    private Double pxLast;
    private String status;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBloombergCcyTicke() {
        return bloombergCcyTicke;
    }

    public void setBloombergCcyTicke(String bloombergCcyTicke) {
        this.bloombergCcyTicke = bloombergCcyTicke;
    }

    public String getCcy1() {
        return ccy1;
    }

    public void setCcy1(String ccy1) {
        this.ccy1 = ccy1;
    }

    public String getCcy2() {
        return ccy2;
    }

    public void setCcy2(String ccy2) {
        this.ccy2 = ccy2;
    }

    public String getFxCcyPair() {
        return fxCcyPair;
    }

    public void setFxCcyPair(String fxCcyPair) {
        this.fxCcyPair = fxCcyPair;
    }

    public Double getPxLast() {
        return pxLast;
    }

    public void setPxLast(Double pxLast) {
        this.pxLast = pxLast;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Spotref{" +
        "id=" + id +
        ", bloombergCcyTicke=" + bloombergCcyTicke +
        ", ccy1=" + ccy1 +
        ", ccy2=" + ccy2 +
        ", fxCcyPair=" + fxCcyPair +
        ", pxLast=" + pxLast +
        ", status=" + status +
        "}";
    }
}
